package TestAop;

import org.springframework.stereotype.Service;

/**
 * Created by wangyg 
 * on 2017/7/26 15:37
 */
@Service
public class ServiceCore {

	public  void printByString(){
		String s=new String();
		for (int i = 0; i < 100000; i++) {
			s=s+i+",";
		}
//		System.out.println(s);
	}

	public  void printByStringBuilder(){
		StringBuilder sb=new StringBuilder();
//		int j=1/0;
		for (int i = 0; i < 100000; i++) {
			sb.append(i).append(",");
		}
//		System.out.println(sb.toString());
	}
}
